﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>百度_全体</title>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <style>
        body {
            max-width: 800px;
            margin: 0 auto;
        }

        #box {
            width: 100%;
        }

        #ifr {
            width: 100%;
            height: 1500px;
        }

        button {
            margin-right: 5px;
            margin-bottom: 5px;
        }
        .btn-grounp button{
            width: 160px;
            font-size: 16px;
            height: 40px;
        }
        .btn-grounp button.sot{
            width: 88px;
        }
        .btn-grounp button.sot2{
            width: 76px;
        }
        .btn-grounp button.long{
            width: 170px;
        }
        .dsnone{
            display: none;
        }
        #pkid{
            font-size: 22px;
            font-weight: bold;
        }
        .div-fixed{
            position: fixed;
            right: 90px;
            top:40%;
            z-index: 999;
            text-align: center;
            width: 80px;
        }
        .div-fixed button{
            width: 76px;
            font-size: 16px;
            height: 45px;
        }
        .div-fixed button.hy{
            color: blue;
            font-weight: bold;
            border-color: blue;
            border-radius: 4px;
            background: #fff;
        }
        .div-fixed2{
            position: fixed;
            right: 5px;
            top:40%;
            z-index: 999;
            text-align: center;
        }
        .div-fixed2 button{
            width: 76px;
            font-size: 14px;
            height: 45px;
        }
        .btnhide1,.btnhide31,.btnhide41,.btnhide51{
            display: none;
        }
        .smallbtn{
            padding: 0!important;
            width:24px!important;
            font-size: 12px!important;
            height: 30px!important;;
        }
    </style>
</head>

<body>
    <div id="box">
        <div class="btn-grounp" style="margin-top:5px;">
            <!--<button type="button" onclick="window.location.reload()">刷新</button>-->
            <!--<button type="button" onclick="startFun11()">回第一个</button>-->
            <!--<button type="button" onclick="startFun00()">秘钥</button>-->
            <!--<button type="button" onclick="startFun0()">秘钥0-30</button>-->
            <button type="button" class="sot" onclick="startFun44()">家园</button>
            <button type="button" class="sot" onclick="startFun5()">钱包</button>
            <button type="button" class="sot2" onclick="startFun6()">友友券</button>
            <button type="button" onclick="startFun1()">输入下标</button>
            <button type="button" onclick="kuozhan()">扩展</button>
            <!--<button type="button" onclick="jisuanBoss()">计算血量(秘境)</button>-->
            <button type="button" class="sot btnhide3 btnhide31" onclick="startFun40()">争霸</button>
            <button type="button" class="sot btnhide3 btnhide31" onclick="startFun41()">竞技</button>
            <!--<button type="button" class="sot btnhide4 btnhide41" onclick="startFun42()">竞猜1</button>-->
            <!--<button type="button" class="sot btnhide4 btnhide41" onclick="startFun47()">竞猜9</button>-->
            <button type="button" class="sot btnhide5 btnhide51" onclick="startFun46()">战队领奖</button>
            <br />
            <button type="button" class="sot" onclick="startFun4()">换号</button>
            <button type="button" class="sot" onclick="startFun55()">换号</button>
            <button type="button" class="sot2" onclick="startFun66()">换号</button>
            <button type="button" onclick="startFun67()">友友券自动</button>
            <button type="button" onclick="startFun333()">自动斗兽十次</button>
            <button type="button" onclick="startFun3333()">自动斗兽三次</button>
<br />
            <button type="button" onclick="startFun4444()">兑换体力丹</button>
	<button type="button" onclick="startFun4445()">兑换中魔液</button>
	<button type="button" onclick="startFun4446()">兑换染色剂</button>
    <button type="button" onclick="startFun19()">自动斗兽(无限)</button>
            <!--<button type="button" class="sot btnhide5 btnhide1" onclick="startFun43()">竞猜奖励</button>-->
            <br />
            <button type="button" class="sot" onclick="startFun444()">族斗</button>
            <button type="button" class="sot" onclick="startFun445()">上月</button>
            <!-- <button type="button" class="sot" onclick="startFun555()">匹配奖</button> -->
            <button type="button" class="sot2" onclick="startFun111()" style="margin-right:4px;">斗兽1</button>
            <button type="button" class="sot2" onclick="startFun112()">斗兽2</button>
            <button type="button" onclick="startFun222()">活跃奖励(神兽)</button>
            <button type="button" class="sot btnhide5 btnhide1" onclick="jisuanShitou()">计算石头</button>
            <button type="button" class="sot btnhide5 btnhide1" onclick="startFun452()">自动领取</button>
            <button type="button" class="sot btnhide5 btnhide1" onclick="startFun45()">七日</button>
            <button id="idstartFun451" type="button" class="btnhide5 btnhide1 smallbtn" onclick="startFun451()"></button>
            <br />
            <button type="button" onclick="startFun192()">使用体力(无限)</button>
            <button type="button" onclick="startFun193()">使用体力(正常)</button>
            <button type="button" onclick="startFun194()" id="guanqia">设置关卡</button>
            <button type="button" onclick="startFun195()" id="guanqiastep">手动寻宝</button>
            <br />
            <span id="nums"></span>[<span id="setInterval"></span>]
            <!--<button type="button" onclick="startFun22()">神兽</button>-->
            <!--<button type="button" onclick="startFun33()">花园</button>-->
            <!--<br />-->
            <!--<button type="button" onclick="startFun2()">换号(神兽)</button>-->
            <!--<button type="button" onclick="startFun3()">换号(花园)</button>-->
        </div>
        <br>
        <iframe id="ifr" src="http://129.28.24.210/home/my_home.aspx" frameborder="0"></iframe>
        <div id="div-fixed" class="div-fixed">
            <button type="button" onclick="startFun11()">初始</button><br />
            <button type="button" onclick="startFun22()">神兽</button><br />
            <button type="button" onclick="startFun23()">部落</button><br />
            <button type="button" onclick="startFun2()">换号</button><br /><br class="btnhide btnhide1" />
            <button type="button" class="hy btnhide btnhide1" onclick="startFun33()">花园</button><br class="btnhide btnhide1" />
            <button type="button" class="hy btnhide btnhide1" onclick="startFun3()">换号</button><br class="btnhide btnhide1" />
            <span id="pkid"></span>
        </div>
        <div class="div-fixed2">
            <button type="button" onclick="window.location.reload()">刷新</button><br />
            <button type="button" onclick="window.location.href = './shabi1.html'">家园</button><br />
            <button type="button" onclick="window.location.href = './shabi2.html'">斗兽</button><br />
            <button type="button" onclick="window.location.href = './shabi3.html'">每日</button><br />
            <button type="button" onclick="window.location.href = './shabi4.html'">换号</button><br />
        </div>
    </div>
    <script src="./jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="./shabi.js?v4.1.2"></script>
    <script>
        var token_idx = 0;
        var token_dan = '';
        var token_list_dan_all = [];
        var token_list_all = [];
        var dou_list = []; // 每天斗兽小号
        var dou_list2 = []; // 每天配对小号
        var dou_list3 = []; // 每天收取配对三次奖励小号
        var pkid = document.getElementById("pkid");
        var nums = document.getElementById("nums");
        var qiriid = document.getElementById("idstartFun451") || {};
        var link_list_shoudong = []
        var link_list_step = []
        window.onload = function(){
            token_dan = localStorage.getItem("texun_token_dan");
            document.getElementById('guanqia').innerText = '设置关卡'+(localStorage.getItem("xunbao_guanqia")||1);
            qiriid.innerText = localStorage.getItem("texun_qiriid") || '';
            if(localStorage.getItem("texun_token_list_all")){
                token_list_all = JSON.parse(localStorage.getItem("texun_token_list_all"))
                token_list_dan_all = JSON.parse(localStorage.getItem("texun_token_list_all"))
                dou_list = token_list_dan_all.slice(12)
                dou_list2 = token_list_dan_all.slice(1,13)
                dou_list3 = token_list_dan_all.slice(0,13)
                if(!localStorage.getItem("texun_token_dan")){
                    token_idx = localStorage.getItem("texun_token_idx") ? Number(localStorage.getItem("texun_token_idx")) : 5;
                    token_dan = token_list_dan_all[token_idx]
                    localStorage.setItem("texun_token_dan",token_dan);
                }
            }
            if(localStorage.getItem("texun_token_idx") || localStorage.getItem("texun_token_idx") == 0){
                token_idx = parseInt(localStorage.getItem("texun_token_idx"));
                pkid.innerText = token_idx;
                token_dan = token_list_dan_all[token_idx]
            }
            var xunbao_guanqia = localStorage.getItem("xunbao_guanqia");
            xunbao_guanqia = xunbao_guanqia?Number(xunbao_guanqia):1;
            link_list_shoudong = setXunbaoList(xunbao_guanqia, token_dan);
            link_list_step = setXunbaoList(1, token_dan);
            ifr.src = "http://129.28.24.210/home/my_home.aspx?sid=" + token_dan;
            if(localStorage.getItem("texun_ishide") == 1){
                document.getElementById("div-fixed").style.top = "185px";
                var btnlist = document.getElementsByClassName('btnhide') || [];
                for(var i=0;i<btnlist.length;i++){
                    var classVal = btnlist[i].getAttribute("class");
                    classVal = classVal.replace("btnhide1","");
                    btnlist[i].setAttribute("class",classVal);
                }
            }
            if(new Date().getDay() == 3){
                var btnlist3 = document.getElementsByClassName('btnhide3') || [];
                for(var i=0;i<btnlist3.length;i++){
                    var classVal = btnlist3[i].getAttribute("class");
                    classVal = classVal.replace("btnhide31","");
                    btnlist3[i].setAttribute("class",classVal);
                }
            }
            if(new Date().getDay() == 4){
                var btnlist4 = document.getElementsByClassName('btnhide4') || [];
                for(var i=0;i<btnlist4.length;i++){
                    var classVal = btnlist4[i].getAttribute("class");
                    classVal = classVal.replace("btnhide41","");
                    btnlist4[i].setAttribute("class",classVal);
                }
            }
            if(new Date().getDay() == 0){
                var btnlist5 = document.getElementsByClassName('btnhide5') || [];
                for(var i=0;i<btnlist5.length;i++){
                    var classVal = btnlist5[i].getAttribute("class");
                    classVal = classVal.replace("btnhide51","");
                    btnlist5[i].setAttribute("class",classVal);
                }
            }
            if(localStorage.getItem("texun_kuozhan") == 1){
                var btnlist = document.getElementsByClassName('btnhide5') || [];
                for(var i=0;i<btnlist.length;i++){
                    var classVal = btnlist[i].getAttribute("class");
                    classVal = classVal.replace("btnhide1","");
                    btnlist[i].setAttribute("class",classVal);
                }
            }
            if(localStorage.getItem('nextTimeGetDouMask') == 1){
                localStorage.setItem('texun_isDayMask',1);
                localStorage.setItem('nextTimeGetDouMask',2);
                localStorage.setItem('texun_isDouNext_data',new Date(Date.now()+86410987).getDate());
                console.log('调用每日斗兽任务开始函数');
                setTimeout(function() {
                    startFun333(true);
                }, 15000);
            }
        }
        function setXunbaoList (xunbao_guanqia, token_dan) {
            var link_list1 = [
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok",step:''}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan,step:'1-1'}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=1",step:'1-1'}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan,step:'1-2'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=4",step:'1-2'}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan,step:'1-3'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=5",step:'1-3'}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan,step:'2-1'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=6",step:'2-1'}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan,step:'2-2'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=7",step:'2-2'}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan,step:'2-3'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=8",step:'2-3'}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan,step:'3-1'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=9",step:'3-1'}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan,step:'3-2'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=10",step:'3-2'}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan,step:'3-3'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=11",step:'3-3'}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan,step:'4-1'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=12",step:'4-1'}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 退出
                ]
            var link_list2 = [
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok"}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=13"}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=14"}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=15"}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=16"}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=17"}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=18"}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=19"}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=20"}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=21"}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=22"}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 退出
                ]
            var link_list3 = [
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok"}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=23"}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=24"}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=25"}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=26"}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=27"}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=28"}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=29"}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=30"}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=31"}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=32"}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 退出
                ]
            var link_list4 = [
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok"}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=34"}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=35"}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=36"}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=37"}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=38"}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=39"}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=40"}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=41"}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=42"}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token_dan+"&act=ok&cid=43"}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token_dan}, // 退出
                ]
            if(xunbao_guanqia == 1){
                return link_list1
            }else if(xunbao_guanqia == 2){
                return link_list2
            }else if(xunbao_guanqia == 3){
                return link_list3
            }else if(xunbao_guanqia == 4){
                return link_list4
            }
        }
        function startFun0(){
            var token_list_all_arr = prompt("请输入秘钥","");
            if(token_list_all_arr){
                token_list_all = [];
                token_list_all_arr = token_list_all_arr.split(",")
                for(var i=0;i<token_list_all_arr.length;i++){
                    var item_token = token_list_all_arr[i];
                    token_list_all.push(item_token.slice(item_token.indexOf('sid=')+4))
                }
                localStorage.setItem("texun_token_list_all",JSON.stringify(token_list_all));
            }
        }
        function startFun00(){
            var token_dan_prompt = prompt("请输入秘钥","");
            if(token_dan_prompt){
                token_dan = token_dan_prompt.slice(token_dan_prompt.indexOf('sid=')+4)
                localStorage.setItem("texun_token_dan",token_dan);
                ifr.src = "http://129.28.24.210/home/my_home.aspx?sid=" + token_dan;
                var xunbao_guanqia = localStorage.getItem("xunbao_guanqia");
                xunbao_guanqia = xunbao_guanqia?Number(xunbao_guanqia):1;
                link_list_shoudong = setXunbaoList(xunbao_guanqia, token_dan);
                link_list_step = setXunbaoList(1, token_dan);
            }
        }
        function startFun1(){
            var token_idx_prompt = prompt("请输入下标（数字0 ~ " + (token_list_dan_all.length-1) + "）","");
            if(token_idx_prompt){
                token_idx = parseInt(token_idx_prompt);
                token_dan = token_list_dan_all[token_idx];
                localStorage.setItem("texun_token_idx",token_idx);
                ifr.src = "http://129.28.24.210/home/my_home.aspx?sid=" + token_dan;
            }else{
                token_idx = 0;
                token_dan = token_list_dan_all[token_idx];
                localStorage.setItem("texun_token_idx",token_idx);
                ifr.src = "http://129.28.24.210/home/my_home.aspx?sid=" + token_dan;
            }
            pkid.innerText = token_idx;
            var xunbao_guanqia = localStorage.getItem("xunbao_guanqia");
            xunbao_guanqia = xunbao_guanqia?Number(xunbao_guanqia):1;
            link_list_shoudong = setXunbaoList(xunbao_guanqia, token_dan);
            link_list_step = setXunbaoList(1, token_dan);
        }
        function startFun11(){
            token_idx = 0;
            token_dan = token_list_dan_all[token_idx];
            localStorage.setItem("texun_token_idx",token_idx);
            ifr.src = "http://129.28.24.210/home/my_home.aspx?sid=" + token_dan;
            pkid.innerText = token_idx;
            var xunbao_guanqia = localStorage.getItem("xunbao_guanqia");
            xunbao_guanqia = xunbao_guanqia?Number(xunbao_guanqia):1;
            link_list_shoudong = setXunbaoList(xunbao_guanqia, token_dan);
            link_list_step = setXunbaoList(1, token_dan);
        }
        function startFun111(){
            ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id=28&sid=" + token_dan;
        }
        function startFun112(){
            ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id=64&sid=" + token_dan;
        }
        function startFun2(){
            token_idx = token_idx + 1;
            if(token_idx >= token_list_dan_all.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            token_dan = token_list_dan_all[token_idx];
            localStorage.setItem("texun_token_dan",token_dan);
            localStorage.setItem("texun_token_idx",token_idx);
            ifr.src = "http://129.28.24.210/game/ssyx/?sid=" + token_dan;
            var xunbao_guanqia = localStorage.getItem("xunbao_guanqia");
            xunbao_guanqia = xunbao_guanqia?Number(xunbao_guanqia):1;
            link_list_shoudong = setXunbaoList(xunbao_guanqia, token_dan);
            link_list_step = setXunbaoList(1, token_dan);
        }
        function startFun22(){
            ifr.src = "http://129.28.24.210/game/ssyx/?sid=" + token_dan;
        }
        var buluoId = [1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002]
        function startFun23(){
            ifr.src = "http://129.28.24.210/game/ssyx/blzy.aspx?id=" + buluoId[token_idx] + "&sid=" + token_dan;
        }
        function startFun222(){
            ifr.src = "http://129.28.24.210/game/ssyx/hd.aspx?id=1&oid=2&sid=" + token_dan + "&act=ok";
        }
        function startFun40(){
            ifr.src = "http://129.28.24.210/game/ssyx/zbjl.aspx?act=ok&sid=" + token_dan;
        }
        function startFun43(){
            // 121 - 133
            // href="zbjl1.aspx?id=121&sid=31046.HpYH3eWesiYl0pG5wACJOF"
            ifr.src = "http://129.28.24.210/game/ssyx/zb.aspx?bt=3&sid=" + token_dan;
        }
        var zidong = 0;
        function startFun452(){
            var config_text = prompt("请输入链接url:","");
            if (config_text) {
                timer12 = setInterval(function () {
                    if (zidong >= token_list_dan_all.length) {
                        clearInterval(timer12);
                        window.location.reload();
                    }else{
                        nums.innerText = zidong;
                        pkid.innerText = token_list_dan_all[zidong].slice(0,5);
                        ifr.src = "http://129.28.24.210"+config_text+"&sid=" + token_list_dan_all[zidong]+"&act=ok";
                        zidong++;
                    }
                }, 1500)
            }
        }
        var qiri = 0;
        function startFun45(){
            // 121 - 133
            // href="zbjl1.aspx?id=121&sid=31046.HpYH3eWesiYl0pG5wACJOF"
            // ifr.src = "http://129.28.24.210/ad/ad.aspx?id=94&sid=" + token_dan;
            var texun_qiriid = localStorage.getItem("texun_qiriid") || 38;
            timer12 = setInterval(function () {
                if (qiri >= token_list_dan_all.length) {
                    clearInterval(timer12);
                    window.location.reload();
                }else{
                    nums.innerText = qiri;
                    pkid.innerText = token_list_dan_all[qiri].slice(0,5);
                    // ifr.src = "http://129.28.24.210/game/ssyx/hd.aspx?id=2&oid=7&sid=" + token_list_dan_all[qiri]+"&act=ok";
                    // ifr.src = "http://129.28.24.210/game/xbhd/lqjl.aspx?id=38&sid=" + token_list_dan_all[qiri]+"&act=ok";
                    ifr.src = "http://129.28.24.210/game/xbhd/lqjl.aspx?id="+texun_qiriid+"&sid=" + token_list_dan_all[qiri]+"&act=ok";
                    qiri++;
                }
            }, 1500)
        }
        function startFun451(){
            var historyData = localStorage.getItem("historyData") || '';
            console.log(historyData)
            var texun_qiriid = prompt("请输入七日活动ID:"+historyData,"");
            if(texun_qiriid){
                localStorage.setItem("texun_qiriid",texun_qiriid);
                qiriid.innerText = texun_qiriid
                if(historyData.indexOf(texun_qiriid) == -1){
                    historyData = historyData ? historyData + ',' + texun_qiriid : texun_qiriid
                    localStorage.setItem("historyData",historyData);
                }
            }
        }
        var timer12 = null;
        var qiandao9 = 0;
        function startFun41(){
            timer12 = setInterval(function () {
                if (qiandao9 >= token_list_all.length) {
                    clearInterval(timer12);
                    window.location.reload();
                }else{
                    pkid.innerText = qiandao9;
                    ifr.src = "http://129.28.24.210/game/ssyx/jjjl.aspx?act=ok&sid=" + token_list_all[qiandao9];
                    qiandao9++;
                }
            }, 1500)
        }
        var qiandao10 = 0;
        function startFun42(){
            var jingcai_id = prompt("请输入竞猜ID","");
            if(!jingcai_id){
                return
            }
            timer12 = setInterval(function () {
                if (qiandao10 >= dou_list3.length) {
                    clearInterval(timer12);
                    window.location.reload();
                }else{
                    pkid.innerText = qiandao10;
                    ifr.src = "http://129.28.24.210/game/ssyx/zb.aspx?bt=3&uid="+jingcai_id+"&sid=" + dou_list3[qiandao10];
                    qiandao10++;
                }
            }, 1500)
        }
        var jingcaiUsed = []; // 被竞猜的ID列表
        function startFun47(){
            var jingcaistrLast = localStorage.getItem('jingcaistr') || "";
            var jingcaistr = prompt("请输入其它9个的竞猜ID(,，.都行)",jingcaistrLast);
            if(jingcaistr){
                localStorage.setItem('jingcaistr',jingcaistr);
                jingcaistr = jingcaistr.replace(/,/g,'.');
                jingcaistr = jingcaistr.replace(/，/g,'.');
                var jingcaiList = jingcaistr.split('.');
                for(var i=0;i<jingcaiList.length;i++){
                    var strOld = jingcaiList[i];
                    if(strOld.length == 1){
                        strOld = '7799000' + strOld
                    }else if(strOld.length == 2){
                        strOld = '779900' + strOld
                    }else if(strOld.length == 3){
                        strOld = '77990' + strOld
                    }else{
                        strOld = '7799' + strOld
                    }
                    jingcaiUsed.push(strOld)
                }
                startFun48()
            }
        }
        var jingcai1 = 0; // 每次竞猜的对象
        var jingcai2 = 0; // 当前谁在竞猜
        function startFun48(){
            pkid.innerText = jingcai2;
            timer12 = setInterval(function () {
                ifr.src = "http://129.28.24.210/game/ssyx/zb.aspx?bt=3&uid="+ jingcaiUsed[jingcai1] +"&sid=" + dou_list3[jingcai2];
                jingcai1++
                nums.innerText = jingcai1;
                if(jingcai1>=jingcaiUsed.length){
                    clearInterval(timer12);
                    setTimeout(function(){
                        jingcai1 = 0;
                        jingcai2++;
                        if(jingcai2>=dou_list3.length){
                            setTimeout(function(){
                                startFun11();
                            },1000)
                        }else{
                            startFun48();
                        }
                    },1500)
                }
            }, 1500)
        }
        var qiandao11 = 0;
        function startFun46(){
            timer12 = setInterval(function () {
                if (qiandao11 >= token_list_all.length) {
                    clearInterval(timer12);
                    window.location.reload();
                }else{
                    pkid.innerText = qiandao11;
                    ifr.src = "http://129.28.24.210/game/ssyx/zhandui/lj.aspx?sid=" + token_list_all[qiandao11];
                    qiandao11++;
                }
            }, 1500)
        }
        var douIndex = 1;
        var timer1 = null;
        var douLen = 0;
        function startFun333(isNew){
            var dou_idx_prompt;
            if(!isNew){
                dou_idx_prompt = prompt("请输入开始下标（数字1 ~ " + (dou_list.length-1) + "）","");
                if(dou_idx_prompt === null){
                    return
                }
            }
            if(dou_idx_prompt){
                douIndex  = dou_idx_prompt
            }
            pkid.innerText = douIndex;
            timer1 = setInterval(function () {
                douLen++
                ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id=28&sid=" + dou_list[douIndex];
                nums.innerText = douLen;
                if(douLen>=10){
                    clearInterval(timer1);
                    setTimeout(function(){
                        ifr.src = "http://129.28.24.210/game/ssyx/hd.aspx?id=1&oid=2&sid=" + dou_list[douIndex] + "&act=ok";
                        douLen = 0;
                        douIndex++;
                        if(douIndex>=dou_list.length){
                            clearInterval(timer1);
                            localStorage.setItem('texun_isDayMask',2);
                            setTimeout(function() {
                                window.location.href = './shabi1.html';
                            }, 30);
                        }else{
                            startFun333(true);
                        }
                    },1500)
                }
            }, 1500)
        }
        var douIndex2 = 0;
        var timer2 = null;
        var douLen2 = 0;
        var douIdList = [64,64,64,28,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64];
        function startFun3333(isNew){
            var dou_idx_prompt;
            if(!isNew){
                dou_idx_prompt = prompt("请输入开始下标（数字0 ~ " + (dou_list2.length-1) + "）","");
                if(dou_idx_prompt === null){
                    return
                }
            }
            if(dou_idx_prompt){
                douIndex2  = dou_idx_prompt
            }
            pkid.innerText = douIndex2;
            timer2 = setInterval(function () {
                douLen2++
                ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+douIdList[douIndex2]+"&sid=" + dou_list2[douIndex2];
                nums.innerText = douLen;
                if(douLen2>=3){
                    clearInterval(timer2);
                    setTimeout(function(){
                        ifr.src = "http://129.28.24.210/game/ssyx/hd.aspx?id=1&oid=2&sid=" + dou_list2[douIndex2] + "&act=ok";
                        douLen2 = 0;
                        douIndex2++;
                        if(douIndex2>=dou_list2.length){
                            setTimeout(function(){
                                startFun11();
                            },1000)
                        }else{
                            startFun3333(true);
                        }
                    },1500)
                }
            }, 1500)
        }
        var fenpei = 0;
        function startFun4444(){
            var fenpei_max = prompt("请输入兑换次数","");
            fenpei_max = Number(fenpei_max || 1);
            timer1 = setInterval(function () {
                if (fenpei >= fenpei_max) {
                    clearInterval(timer1);
                    ifr.src = "http://129.28.24.210/home/yyq.aspx?sid=" + token_dan
                    fenpei = 0
                }else{
                    nums.innerText = fenpei;
                    ifr.src = "http://129.28.24.210/home/yyqshop.aspx?id=23&sid="+token_dan;
                    fenpei++;
                }
            }, 1500)
        }
        function startFun4445(){
            var fenpei_max = prompt("请输入兑换次数","");
            fenpei_max = Number(fenpei_max || 1);
            timer1 = setInterval(function () {
                if (fenpei >= fenpei_max) {
                    clearInterval(timer1);
                    ifr.src = "http://129.28.24.210/home/yyq.aspx?sid=" + token_dan
                    fenpei = 0
                }else{
                    nums.innerText = fenpei;
                    ifr.src = "http://129.28.24.210/home/yyqshop.aspx?id=2&sid="+token_dan;
                    fenpei++;
                }
            }, 1500)
        }
        function startFun4446(){
            var fenpei_max = prompt("请输入兑换次数","");
            fenpei_max = Number(fenpei_max || 1);
            timer1 = setInterval(function () {
                if (fenpei >= fenpei_max) {
                    clearInterval(timer1);
                    ifr.src = "http://129.28.24.210/home/yyq.aspx?sid=" + token_dan
                    fenpei = 0
                }else{
                    nums.innerText = fenpei;
                    ifr.src = "http://129.28.24.210/home/yyqshop.aspx?id=28&sid="+token_dan;
                    fenpei++;
                }
            }, 1500)
        }
        let tilidanList = ['3130', '3263', '3278', '3261', '3132', '3264', '3266', '3268', '3271', '3274', '3275', '3276', '3210']
        let tilidanListDou = ['64', '64', '64', '64', '3715', '64', '64', '64', '64', '64', '64', '64', '64']
        // 自动斗兽
        function startFun19(){
            // 使用体力：/game/ssyx/sy.aspx?id=3130&sid= + token_dan
            // 斗兽：/game/ssyx/ds.aspx?id=64&sid= + token_dan
            if (token_idx <= 12) {
                startFun191()
                let shuadoushou = setInterval(function () {
                    startFun191()
                }, 20200)
            } else {
                alert('未配置体力ID')
            }
        }
        function startFun191(){
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+tilidanListDou[token_idx]+"&sid=" + token_dan; }, 1200)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+tilidanListDou[token_idx]+"&sid=" + token_dan; }, 2500)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+tilidanListDou[token_idx]+"&sid=" + token_dan; }, 3800)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+tilidanListDou[token_idx]+"&sid=" + token_dan; }, 5000)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+tilidanListDou[token_idx]+"&sid=" + token_dan; }, 6300)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+tilidanListDou[token_idx]+"&sid=" + token_dan; }, 7500)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+tilidanListDou[token_idx]+"&sid=" + token_dan; }, 8800)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+tilidanListDou[token_idx]+"&sid=" + token_dan; }, 10000)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+tilidanListDou[token_idx]+"&sid=" + token_dan; }, 11400)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/ds.aspx?id="+tilidanListDou[token_idx]+"&sid=" + token_dan; }, 12700)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/sy.aspx?id="+tilidanList[token_idx]+"&sid=" + token_dan; }, 13900)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/sy.aspx?id="+tilidanList[token_idx]+"&sid=" + token_dan; }, 15200)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/sy.aspx?id="+tilidanList[token_idx]+"&sid=" + token_dan; }, 16400)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/sy.aspx?id="+tilidanList[token_idx]+"&sid=" + token_dan; }, 17700)
            setTimeout(function(){ ifr.src = "http://129.28.24.210/game/ssyx/sy.aspx?id="+tilidanList[token_idx]+"&sid=" + token_dan; }, 18900)
        }
        function startFun192(){
            if (token_idx <= 12) {
                ifr.src = "http://129.28.24.210/game/ssyx/sy.aspx?id="+tilidanList[token_idx]+"&sid=" + token_dan;
            } else {
                alert('未配置体力ID')
            }
        }
        function startFun193(){
            ifr.src = "http://129.28.24.210/game/ssyx/tl.aspx?sid=" + token_dan;
        }
        function startFun194(){
            var start_xunbao = prompt("请输入寻宝关卡1嫦娥，2猪八戒，3秘境，4麒麟","");
            if(start_xunbao){
                localStorage.setItem('xunbao_guanqia',start_xunbao);
                document.getElementById('guanqia').innerText = '设置关卡'+start_xunbao
            }
            link_list_shoudong = setXunbaoList(start_xunbao, token_dan);
            link_list_step = setXunbaoList(1, token_dan);
        }
        var start_index = 0;
        function startFun195(){
            document.getElementById('guanqiastep').innerText = '手动寻宝'+(link_list_step[start_index].step||'');
            ifr.src = link_list_shoudong[start_index].url;
            start_index++;
            if(start_index >= link_list_shoudong.length){
                start_index = 0
            }
        }
        function startFun3(){
            token_idx = token_idx + 1;
            if(token_idx >= token_list_dan_all.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            token_dan = token_list_dan_all[token_idx];
            localStorage.setItem("texun_token_dan",token_dan);
            localStorage.setItem("texun_token_idx",token_idx);
            ifr.src = "http://129.28.24.210/game/garden/user/my_garden.aspx?sid=" + token_dan;
            var xunbao_guanqia = localStorage.getItem("xunbao_guanqia");
            xunbao_guanqia = xunbao_guanqia?Number(xunbao_guanqia):1;
            link_list_shoudong = setXunbaoList(xunbao_guanqia, token_dan);
            link_list_step = setXunbaoList(1, token_dan);
        }
        function startFun33(){
            ifr.src = "http://129.28.24.210/game/garden/user/my_garden.aspx?sid=" + token_dan;
        }
        function startFun4(){
            token_idx = token_idx + 1;
            if(token_idx >= token_list_dan_all.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            token_dan = token_list_dan_all[token_idx];
            localStorage.setItem("texun_token_dan",token_dan);
            localStorage.setItem("texun_token_idx",token_idx);
            ifr.src = "http://129.28.24.210/home/my_home.aspx?sid=" + token_dan;
            var xunbao_guanqia = localStorage.getItem("xunbao_guanqia");
            xunbao_guanqia = xunbao_guanqia?Number(xunbao_guanqia):1;
            link_list_shoudong = setXunbaoList(xunbao_guanqia, token_dan);
            link_list_step = setXunbaoList(1, token_dan);
        }
        function startFun44(){
            ifr.src = "http://129.28.24.210/home/my_home.aspx?sid=" + token_dan;
        }
        function startFun444(){
            ifr.src = "http://129.28.24.210/bbs/bu.aspx?bid=9859&bt=2&sid=" + token_dan;
        }
        function startFun445(){
            ifr.src = "http://129.28.24.210/bbs/family_top.aspx?bt=10&sid=" + token_dan;
        }
        function startFun5(){
            ifr.src = "http://129.28.24.210/home/money/?sid=" + token_dan;
        }
        function startFun55(){
            token_idx = token_idx + 1;
            if(token_idx >= token_list_dan_all.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            token_dan = token_list_dan_all[token_idx];
            localStorage.setItem("texun_token_dan",token_dan);
            localStorage.setItem("texun_token_idx",token_idx);
            ifr.src = "http://129.28.24.210/home/money/?sid=" + token_dan;
            var xunbao_guanqia = localStorage.getItem("xunbao_guanqia");
            xunbao_guanqia = xunbao_guanqia?Number(xunbao_guanqia):1;
            link_list_shoudong = setXunbaoList(xunbao_guanqia, token_dan);
            link_list_step = setXunbaoList(1, token_dan);
        }
        function startFun6(){
            ifr.src = "http://129.28.24.210/home/yyq.aspx?sid=" + token_dan;
        }
        function startFun66(){
            token_idx = token_idx + 1;
            if(token_idx >= token_list_dan_all.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            token_dan = token_list_dan_all[token_idx];
            localStorage.setItem("texun_token_dan",token_dan);
            localStorage.setItem("texun_token_idx",token_idx);
            ifr.src = "http://129.28.24.210/home/yyq.aspx?sid=" + token_dan;
            var xunbao_guanqia = localStorage.getItem("xunbao_guanqia");
            xunbao_guanqia = xunbao_guanqia?Number(xunbao_guanqia):1;
            link_list_shoudong = setXunbaoList(xunbao_guanqia, token_dan);
            link_list_step = setXunbaoList(1, token_dan);
        }
        function startFun67(){
            let index_yyq = 0;
            let timer67 = setInterval(function () {
                if (index_yyq >= token_list_dan_all.length) {
                    clearInterval(timer67);
                }else{
                    ifr.src = "http://129.28.24.210/home/yyq.aspx?sid=" + token_list_dan_all[index_yyq];
                    setTimeout(() => {
                        ifr.src = "http://129.28.24.210/home/yyq.aspx?page=2&sid=" + token_list_dan_all[index_yyq];
                        index_yyq++;
                    }, 1000);
                }
            }, 2000);
        }
        var pipeiShanci = 0;
        var timer4 = null;
        function startFun555(){
            timer4 = setInterval(function () {
                if (pipeiShanci >= dou_list3.length) {
                    clearInterval(timer4);
                    startFun11();
                }else{
                    pkid.innerText = pipeiShanci;
                    ifr.src = "http://129.28.24.210/game/ssyx/hd.aspx?id=1&oid=3&sid=" + dou_list3[pipeiShanci] + "&act=ok";
                    pipeiShanci++;
                }
            }, 1500)
        }
        function jisuanShitou(){
           var data = prompt("石头消耗计算（等级用.隔开）",""); 
           var dataList = [];
           var numTotal = 0;
           if(data){
               if(data.indexOf(".") != -1){
                   dataList = data.split(".")
               }else if(data.indexOf(",") != -1){
                   dataList = data.split(",")
               }else if(data.indexOf("，") != -1){
                   dataList = data.split("，")
               }else if(!isNaN(parseInt(data))){
                   dataList = [parseInt(data)]
               }
               for(var i=0;i<dataList.length;i++){
                   numTotal += diejiaNum(dataList[i])
               }
               alert("一共使用了"+numTotal+"个强化石");
           }
        }
        function diejiaNum(num){
           var total = 0;
           num = parseInt(num)
           for(var i=1;i<num+1;i++){
               total += i
           }
           return total
        }
        function jisuanBoss(){
            var boss_g = '800';
            var boss_f = '400';
            var boss_x = '2000';
            var data = prompt("秘境BOSS计算（依次输入攻击，防御，血量）","");
            if(data){
                var list = [];
                if(data.indexOf(",") != -1){
                    list = data.split(",");
                }else if(data.indexOf("，") != -1){
                    list = data.split("，");
                }else if(data.indexOf(".") != -1){
                    list = data.split(".");
                }
                if(list.length == 3){
                    var self_g = Number(list[0] || 0);
                    var self_f = Number(list[1] || 0);
                    var self_x = Number(list[2] || 0);
                    if(self_g > boss_f){
                        while(boss_x > 0 && self_x > 0){
                            self_x = self_x - (boss_g - self_f)
                            boss_x = boss_x - (self_g - boss_f)
                        }
                        if(self_x > 0){
                            alert("打得过(boss:"+boss_x+",自己:"+self_x+")")
                        }else{
                            alert("打不过(boss:"+boss_x+",自己:"+self_x+")，还需要加强")
                        }
                    }else{
                        alert("打不过(boss:"+boss_x+",自己:"+self_x+")，无法破防")
                    }
                }else{
                    alert("输入有误");
                }
            }
        }
        
        function kuozhan(){
            var texun_kuozhan = localStorage.getItem("texun_kuozhan")
            if(texun_kuozhan == 2){
                localStorage.setItem("texun_kuozhan",1)
            }else{
                localStorage.setItem("texun_kuozhan",2)
            }
            window.location.reload();
        }
    </script>
</body>

</html>